package cn.itcast.usercontext.util.usersession;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 登录用户
 *
 * @author ttxxi
 * @date 2021-3-13 09:45:41
 */
@NoArgsConstructor
@ToString
@Getter
@Setter
public class LoginUser implements Serializable {

    /**
     * 用户id
     */
    public Long id;

    /**
     * 用户名
     */
    public String name;


    public LoginUser(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
